<div class="content-preview">
    <div class="content-preview-title">
        <a href="<?php echo url_for('render_content',$content)?>"
           title="<?php echo $content->getTitle()?>">
                <h3><?php echo $content->getTitle()?></h3>
        </a>
    </div>
    <?php if($hasBigScreen): ?>
        <?php if($content->getThumbBig() != ''): ?>
            <div class="content-preview-thumbnail">
                <a href="<?php echo url_for('render_content',$content)?>"
                   title="<?php echo $content->getTitle()?>">
                        <img alt="<?php echo $content->getTitle()?>"
                             src="<?php echo '/uploads/portal_'.$portal->getId().'/images/'.$content->getThumbBig()?>">
                </a>
            </div>
        <?php else: ?>
            <?php if($content->getThumbSmall() != ''): ?>
                <div class="content-preview-thumbnail">
                    <a href="<?php echo url_for('render_content',$content)?>"
                       title="<?php echo $content->getTitle()?>">
                            <img alt="<?php echo $content->getTitle()?>"
                                 src="<?php echo '/uploads/portal_'.$portal->getId().'/images/'.$content->getThumbSmall()?>">
                    </a>
                </div>
            <?php endif; ?>
        <?php endif; ?>
    <?php else: ?>
        <?php if($content->getThumbSmall() != ''): ?>
            <div class="content-preview-thumbnail">
                <a href="<?php echo url_for('render_content',$content)?>"
                   title="<?php echo $content->getTitle()?>">
                        <img alt="<?php echo $content->getTitle()?>"
                             src="<?php echo '/uploads/portal_'.$portal->getId().'/images/'.$content->getThumbSmall()?>">
                </a>
            </div>
        <?php endif; ?>
    <?php endif;?>
    <?php if($content->getSummary() != ''): ?>
        <div class="content-preview-summary">
            <p><?php echo $content->getSummary()?></p>
        </div>
    <?php endif; ?>
    <?php if($portal->getUsesContentComments()): ?>
        <div class="content-preview-comments">
            <small><?php echo 'Comentarios: '.$content->getComments()->count() ?></small>
        </div>
    <?php endif; ?>
    <?php if($portal->getUsesServButtons()): ?>
        <?php include_partial('renderServiceButtons',
                array(
                    'portal'=>$portal,
                    'content' => $content,
                    'hasBigScreen' => $hasBigScreen
                ))?>
    <?php endif; ?>
</div>
